<#assign menuID = menuID + 1 />
<div id="menu_${menuID}"<#rt/>
<#if parameters.headCssClass?exists>
 class="${parameters.headCssClass?html}"<#rt/>
<#else>
	<#if parameters.topMenu?if_exists == menuComponent.name>
	 class="g-leftmenu-expand"<#rt/>
	<#else>
	 class="g-leftmenu-collapse"<#rt/>
	</#if>
</#if>
<#if parameters.headCssStyle?exists>
 style="${parameters.headCssStyle?html}"<#rt/>
</#if>
<#if parameters.topMenu?if_exists == menuComponent.name>
 onclick="Geni.Menu.ExpandMenu('menu_${menuID}','sub_menu_${menuID}',false)"<#rt/>
<#else> 
 onclick="Geni.Menu.ExpandMenu('menu_${menuID}','sub_menu_${menuID}',false)"<#rt/>
</#if>
><#rt/>
<#if menuComponent.title?exists>
${menuComponent.title}<#rt/>
</#if><#rt/>
</div>
<ul id="sub_menu_${menuID}"<#rt/>
<#if parameters.cssClass?exists>
 class="${parameters.cssClass?html}"<#rt/>
<#else>
 class="g-leftmenu<#rt/>
<#if parameters.topMenu?if_exists == menuComponent.name>
 g-leftmenu-active<#rt/>
</#if>
"<#rt/>
</#if>
<#if parameters.cssStyle?exists>
 style="${parameters.cssStyle?html}"<#rt/>
</#if>
>
<#list menuComponent.menuComponents as subMenuComponent>
	<#if subMenuComponent.webContext?if_exists="MenuSeparator">
	<hr/>
	<#else/>
	<li<#rt/>
<#if parameters.subMenu?if_exists == subMenuComponent.name>
 class="g-leftmenu-item-active"<#rt/>
</#if>
><#rt/>
<a href="<#rt/>
<#if subMenuComponent.webContext?exists>${subMenuComponent.webContext}</#if><#rt/>
<#if subMenuComponent.location?exists>${subMenuComponent.location}</#if><#rt/>
"<#rt/>
<#if subMenuComponent.target?exists> target="${subMenuComponent.target}"</#if><#rt/>
><#rt/>
<#if menuComponent.title?exists>
${subMenuComponent.title}<#rt/>
</#if>
</a><#rt/>
</li>
	</#if>
</#list>
</ul>
<#if parameters.topMenu?if_exists == menuComponent.name>
	<script>Geni.Menu.lastBarID='menu_${menuID}';Geni.Menu.lastGroupID='sub_menu_${menuID}';</script>
</#if>
